<?php
/**
 *
 * 回调基础类
 * @author widyhu
 *
 */
namespace LancerWechat\Pay;

class WechatPayNotifyTest extends WechatPayNotify
{
    //重写回调处理函数
    public function NotifyProcess($data, &$msg)
    {
        $this->Handle();
        return json_encode($data);
        Log::DEBUG("call back:" . json_encode($data));
        $notfiyOutput = array();

        if (!array_key_exists("transaction_id", $data)) {
            $msg = "输入参数不正确";
            return false;
        }
        //查询订单，判断订单真实性
        if (!$this->Queryorder($data["transaction_id"])) {
            $msg = "订单查询失败";
            return false;
        }
        return true;
    }
}